import ByFromCreate from './by-from-create.vue'
import type { byFromCreateGlobal } from './typings'
import type { App } from 'vue';

const install = function(app: App) {
  app.component('ByFromCreate', ByFromCreate)
}

export const globalByFromCreate: byFromCreateGlobal = {
  version: '1.0.0',
  install,
  ByFromCreate,
}


/**
 * 组件使用
 * npm install by-form-create
 * import 'by-form-create/dist/index.css'
 * import { ByFormCreate }  from "by-form-create";
 */
export { ByFromCreate }

/**
 * 全局注册
 * import ByFormCreate from 'by-form-create';
 * import 'by-form-create/dist/index.css'
 *
 * const app = createApp(App)
 * app.use(ByFormCreate)
 * app.mount('#app')
 */
export default globalByFromCreate
